.class public Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Lcom/waiqin365/base/login/mainview/TitleBar;

.field private b:Lcom/waiqin365/lightapp/chexiao/aj;

.field private c:Ljava/util/List;

.field private d:Landroid/widget/LinearLayout;

.field private e:Ljava/util/ArrayList;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method private a()V
    .locals 4

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->showProgressDialog(Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/lightapp/chexiao/b/a/f;

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->mContext:Landroid/content/Context;

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string/jumbo v3, "id"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Lcom/waiqin365/lightapp/chexiao/b/a/f;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v1, Lcom/waiqin365/lightapp/chexiao/b/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->b:Lcom/waiqin365/lightapp/chexiao/aj;

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/lightapp/chexiao/b/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/chexiao/b/c;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/chexiao/b/b;->start()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->b()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;Ljava/util/List;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->a(Ljava/util/List;)V

    return-void
.end method

.method private a(Ljava/util/List;)V
    .locals 13

    iput-object p1, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->c:Ljava/util/List;

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->e:Landroid/widget/TextView;

    const v1, 0x7f0807cb

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    new-instance v5, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v0, -0x1

    const/4 v1, -0x2

    invoke-direct {v5, v0, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_8

    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/chexiao/c/u;

    const-string/jumbo v2, "10"

    iget-object v3, v0, Lcom/waiqin365/lightapp/chexiao/c/u;->a:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_0

    const-string/jumbo v2, "id"

    iget-object v3, v0, Lcom/waiqin365/lightapp/chexiao/c/u;->c:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    :cond_0
    :goto_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    const-string/jumbo v2, "8"

    iget-object v3, v0, Lcom/waiqin365/lightapp/chexiao/c/u;->a:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_6

    new-instance v6, Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;

    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->mContext:Landroid/content/Context;

    invoke-direct {v6, v2}, Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;-><init>(Landroid/content/Context;)V

    iget-object v2, v0, Lcom/waiqin365/lightapp/chexiao/c/u;->c:Ljava/lang/String;

    invoke-virtual {v6, v2}, Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;->setLabel(Ljava/lang/CharSequence;)V

    const/4 v2, 0x0

    invoke-virtual {v6, v2}, Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;->setEdit(Z)V

    const/4 v2, -0x1

    invoke-virtual {v6, v2}, Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;->setBackgroundColor(I)V

    iget-object v0, v0, Lcom/waiqin365/lightapp/chexiao/c/u;->b:Ljava/lang/String;

    const-string/jumbo v2, ","

    invoke-virtual {v0, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v7

    array-length v8, v7

    const/4 v0, 0x0

    move v4, v0

    :goto_2
    if-ge v4, v8, :cond_4

    aget-object v9, v7, v4

    invoke-static {v9}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    :goto_3
    add-int/lit8 v0, v4, 0x1

    move v4, v0

    goto :goto_2

    :cond_2
    const-string/jumbo v0, ""

    const-string/jumbo v2, "/"

    invoke-virtual {v9, v2}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v2

    const/4 v3, -0x1

    if-le v2, v3, :cond_a

    const-string/jumbo v0, "/"

    invoke-virtual {v9, v0}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v0

    invoke-virtual {v9, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    move-object v2, v0

    :goto_4
    const/16 v0, 0x2e

    invoke-virtual {v9, v0}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v0

    new-instance v3, Ljava/lang/StringBuffer;

    invoke-direct {v3, v9}, Ljava/lang/StringBuffer;-><init>(Ljava/lang/String;)V

    const-string/jumbo v10, "_small"

    invoke-virtual {v3, v0, v10}, Ljava/lang/StringBuffer;->insert(ILjava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v3}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v10

    const-string/jumbo v3, ""

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->e:Ljava/util/ArrayList;

    if-eqz v0, :cond_9

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v11

    :cond_3
    invoke-interface {v11}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_9

    invoke-interface {v11}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v12

    if-eqz v12, :cond_3

    :goto_5
    new-instance v2, Lcom/waiqin365/lightapp/b/b;

    invoke-direct {v2}, Lcom/waiqin365/lightapp/b/b;-><init>()V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v3

    iget-object v11, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->mContext:Landroid/content/Context;

    invoke-virtual {v3, v11, v10}, Lcom/waiqin365/base/login/mainview/a;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lcom/waiqin365/lightapp/b/b;->a:Ljava/lang/String;

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v3

    iget-object v10, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->mContext:Landroid/content/Context;

    invoke-virtual {v3, v10, v9}, Lcom/waiqin365/base/login/mainview/a;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lcom/waiqin365/lightapp/b/b;->b:Ljava/lang/String;

    iput-object v0, v2, Lcom/waiqin365/lightapp/b/b;->c:Ljava/lang/String;

    invoke-virtual {v6, v2}, Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;->a(Lcom/waiqin365/lightapp/b/b;)Z

    goto :goto_3

    :cond_4
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne v1, v0, :cond_5

    const/4 v0, 0x0

    invoke-virtual {v6, v0}, Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;->setBottomLineStatus(Z)V

    :cond_5
    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->d:Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v2}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    invoke-virtual {v0, v6, v2, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    goto/16 :goto_1

    :cond_6
    new-instance v2, Lcom/waiqin365/lightapp/view/LabelView_vertical;

    iget-object v3, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->mContext:Landroid/content/Context;

    invoke-direct {v2, v3}, Lcom/waiqin365/lightapp/view/LabelView_vertical;-><init>(Landroid/content/Context;)V

    iget-object v3, v0, Lcom/waiqin365/lightapp/chexiao/c/u;->c:Ljava/lang/String;

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/view/LabelView_vertical;->setLabel(Ljava/lang/CharSequence;)V

    iget-object v0, v0, Lcom/waiqin365/lightapp/chexiao/c/u;->b:Ljava/lang/String;

    invoke-virtual {v2, v0}, Lcom/waiqin365/lightapp/view/LabelView_vertical;->setContent(Ljava/lang/String;)V

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-ne v1, v0, :cond_7

    const/4 v0, 0x0

    invoke-virtual {v2, v0}, Lcom/waiqin365/lightapp/view/LabelView_vertical;->setBottomLineStatus(Z)V

    :cond_7
    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->d:Landroid/widget/LinearLayout;

    iget-object v3, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v3}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v3

    add-int/lit8 v3, v3, -0x1

    invoke-virtual {v0, v2, v3, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    goto/16 :goto_1

    :cond_8
    return-void

    :cond_9
    move-object v0, v3

    goto :goto_5

    :cond_a
    move-object v2, v0

    goto/16 :goto_4
.end method

.method private b()V
    .locals 3

    const/16 v2, 0x8

    const v0, 0x7f0c0247

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->d:Landroid/widget/LinearLayout;

    const v0, 0x7f0c00f8

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/mainview/TitleBar;

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->a:Landroid/widget/ImageButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->h:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->i:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->d:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    return-void
.end method

.method private c()V
    .locals 0

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->finish()V

    goto :goto_0

    :sswitch_1
    invoke-direct {p0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->c()V

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        0x7f0c008a -> :sswitch_0
        0x7f0c0092 -> :sswitch_1
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f0300d6

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->setContentView(I)V

    new-instance v0, Lcom/waiqin365/lightapp/chexiao/aj;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/chexiao/aj;-><init>(Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->b:Lcom/waiqin365/lightapp/chexiao/aj;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "id"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->finish()V

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "picPaths"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->e:Ljava/util/ArrayList;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/chexiao/CXDFHWDetailActivity;->a()V

    return-void
.end method
